﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.Controls;

namespace SelectTypeClass
{
	public partial class FormSelectType : HYBaseForm
	{
		public FormSelectType()
		{
			this.InitializeComponent();
			this.ReadData();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			if (this.radioCurView.Checked)
			{
				this.m_radio = 0;
			}
			else if (this.radioFireFight.Checked)
			{
				this.m_radio = 1;
			}
			else if (this.radioDraw.Checked)
			{
				this.m_radio = 2;
			}
			base.DialogResult = DialogResult.OK;
		}

		private void button2_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}

		private void ReadData()
		{
			switch (0)
			{
			case 0:
				this.radioCurView.Checked = true;
				return;
			case 1:
				this.radioFireFight.Checked = true;
				return;
			case 2:
				this.radioDraw.Checked = true;
				return;
			default:
				return;
			}
		}

		private void SaveData()
		{
		}

		public int GetSelectType()
		{
			return this.m_radio;
		}

		public int m_radio;
	}
}
